<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="keyworks" content="许愿墙" />
		<title>许愿墙</title> 
		<link rel="stylesheet" href="<?php echo __PUBLIC__ ?>/css.css" />
		<script src="<?php echo __PUBLIC__ ?>/js/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
		<script src="<?php echo __PUBLIC__ ?>/js/lib.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			var APP = "<?php echo __APP__ ?>";
		</script>
		<script src="<?php echo __PUBLIC__ ?>/js/index.js" type="text/javascript" charset="utf-8"></script>
		<script src="<?php echo __PUBLIC__ ?>/js/add.js" type="text/javascript" charset="utf-8"></script>
	</head>
	
	<body>
		<div id="box">
	 		<div class="top">
	 			<div class="add">
	 				<img src="<?PHP echo __PUBLIC__ ?>/images/button.jpg" />
	 			</div>
	 		</div>
	 		<div class="edit">
	 			<a href="javascript:;" class="q" style="text-decoration: none;color: #000000;">X</a>
	 			<form action="javascript:;" method="post">
	 				<input type="text" class="uname" name="uname"/>
	 				<textarea name="con" rows="" cols="" class="con"></textarea>
	 				<input type="submit" value="许愿" class='ok'/>
	 			</form>
	 		</div>

	 		<div class="main">
	 			<?php foreach($db as $k=>$v): if($k%2)$a = 1;else $a = 0?>
	 			<div class=<?php echo 'blue'.$a ?> style="top:<?php echo mt_rand(5,512); ?>px;left:<?php echo mt_rand(5,1148);?>px;">
	 				<div class=<?php echo 'main_top'.$a ?> ><p>时间: <?php echo $v['time'] ?></p></div>
	 				<div class=<?php echo 'main_main'.$a ?>>
		 				<p><?php echo $v['con'] ?></p>
	 				</div>
	 				<div class=<?php echo 'main_bottom'.$a ?>><p>许愿人:<?php echo $v['uname'] ?></p></div>
	 			</div>
	 			<?php endforeach ?>
	 		</div>
	 		<div class="bottom">
	 			
	 		</div>
	 	</div>
	</body>
</html>
